﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QThread>
#include <QWidget>
#include "widget2.h"
#include "widget3.h"
#include "widget4.h"
#include "widget5.h"

class QWaiting;
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();
signals:
    void operate(QPair<QString, QString> recode,QStringList _list);
protected:
    void mousePressEvent(QMouseEvent *event) override;
    void contextMenuEvent(QContextMenuEvent *event) override;
private slots:
    void SlotWidget2NextPage();
    void SlotWidget2LastPage();

    void SlotWidget3Change(int);

    void SlotWidget4Next(QPair<QString,QString>);

    void handleResults(const QString&);
private:
    Ui::Widget *ui;
    Widget2* m_pWidget2;
    Widget3* m_pWidget3;
    Widget4* m_pWidget4;
    Widget5* m_pWidget5;
    QWaiting *m_pQwait;							//进度条窗口
    QThread workerThread;
};

#endif // WIDGET_H
